package Model;

public class Banco {
	private double saldoTotal;

	public Banco() {
		saldoTotal = 0;
	}

	public Banco(double saldoTotal) {
		this.saldoTotal = saldoTotal;
	}

	public double getSaldoTotal() {
		return saldoTotal;
	}

	public void setSaldoTotal(double saldoTotal) {
		this.saldoTotal = saldoTotal;
	}
	
	public void registra(Conta c){
		saldoTotal += c.getSaldo();
	}
}
